package cn.edu.ctbu.datajpa3.repository;

import cn.edu.ctbu.datajpa3.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StudentRepository extends JpaRepository<Student, Integer> {
    // 按照姓名进行模糊查询
    List<Student> findByNameContaining(String name);
}
